import xadmin


# Create your models here.
# 城市表
from mechanism.models import CityInfo, MechanismList


class CityInfoXadmin(object):
    list_display = ['name', 'add_time']
    model_icon = 'fa fa-map'


# 分店列表
class MechanismListXadmin(object):
    list_display = ['image', 'name', 'address', 'course_num', 'study_num', 'love_num', 'click_num', 'city_info']
    model_icon = 'fa fa-map-marker'


xadmin.site.register(CityInfo,CityInfoXadmin)
xadmin.site.register(MechanismList,MechanismListXadmin)